// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-vo.ts.hbs生成
import { ControlVOBase } from '@/core';
import { transformValue } from '@/utils';
import { model } from './main-layout-form-model';

export class FormControlVO extends ControlVOBase {
    constructor(data: any) {
        //  表单预置字段
        data.srfwfmemo = data['srfwfmemo'] ? data['srfwfmemo'] : '';
        data.srffrontuf = data['srffrontuf'] ? data['srffrontuf'] : '';
        super(data);
        //  表单自持属性
        this.$ownKeys = ['srfupdatedate', 'srforikey', 'srfkey', 'srfmajortext', 'srftempmode', 'srfuf', 'srfdeid', 'srfsourcekey', 'ibizbookid', 'borrower', 'borrower1', 'borrower2', 'borrower3', 'borrower2_id', 'borrowerid'];
    }
    get srfupdatedate() {
        return this.$DO.updatedate;
    }
    set srfupdatedate(value: any) {
        this.$DO.updatedate = value;
    }
    get srfkey() {
        return this.$DO.ibizbookid;
    }
    set srfkey(value: any) {
        this.$DO.ibizbookid = value;
    }
    get srfmajortext() {
        return this.$DO.ibizbookname;
    }
    set srfmajortext(value: any) {
        this.$DO.ibizbookname = value;
    }
    get ibizbookid() {
        return this.$DO.ibizbookid;
    }
    set ibizbookid(value: any) {
        this.$DO.ibizbookid = value;
    }
    get borrower() {
        return this.$DO.borrower;
    }
    set borrower(value: any) {
        this.$DO.borrower = value;
    }
    get borrower1() {
        return this.$DO.borrower1;
    }
    set borrower1(value: any) {
        this.$DO.borrower1 = value;
    }
    get borrower2() {
        return this.$DO.borrower2;
    }
    set borrower2(value: any) {
        this.$DO.borrower2 = value;
    }
    get borrower3() {
        return this.$DO.borrower3;
    }
    set borrower3(value: any) {
        this.$DO.borrower3 = value;
    }
    get borrower2_id() {
        return this.$DO.borrower2_id;
    }
    set borrower2_id(value: any) {
        this.$DO.borrower2_id = value;
    }
    get borrowerid() {
        return this.$DO.borrowerid;
    }
    set borrowerid(value: any) {
        this.$DO.borrowerid = value;
    }
    // 界面主键标识
    get ibizbook() {
        return this.$DO.ibizbookid;
    }

    set ibizbook(value: any) {
        this.$DO.ibizbookid = value;
    }

    //  工作流预置字段
    srfwfmemo: any;
    srffrontuf: any;

    //  无实体属性表单项
    get srftempmode() {
        return this.$DO.srftempmode;
    }

    set srftempmode(value: any) {
        this.$DO.srftempmode = value;
    }

    //  表单重复器

    /**
     * 返回后台数据
     *
     * @return {*} 
     * @memberof FormControlVO
     */
	public getDo() {
        return {
            srffrontuf: this.srffrontuf,
            ibizbookid: this.$DO.ibizbookid,
borrower: this.$DO.borrower,
borrower1: this.$DO.borrower1,
borrower2: this.$DO.borrower2,
borrower3: this.$DO.borrower3,
borrower2_id: this.$DO.borrower2_id,
borrowerid: this.$DO.borrowerid,
updatedate: this.$DO.updatedate,
ibizbookname: this.$DO.ibizbookname,
        }
	}

}